package com.ModularTest.testmachineStateControlle;

import java.util.LinkedHashSet;

import com.Modular.nacosPlugin.NacosConfigPlugin;
import com.Modular.nacosPlugin.NacosServicePlugin;
import com.alibaba.nacos.api.exception.NacosException;
import com.alibaba.nacos.api.naming.pojo.Instance;
import com.jfinal.core.Controller;

public class machineStateControlle extends Controller {

	public void index() throws NacosException{
		//获取推送的配置
		String nacosConfigString = NacosConfigPlugin.getNacosConfigString();
		//获取获得注册中心的数据
		LinkedHashSet<Instance> serviceSet = NacosServicePlugin.getServiceSet();
		
//		System.out.println(1/0);
	   	
		renderText("OK");
	}

	
	
	
	
}
